/* 使用 scoped 避免样式冲突 */
.app-container {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.search-bar {
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  /* 自动填充列，最小宽度 280px */
  gap: 16px;
}

.grid-item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  /* 让每个 grid-item 平分剩余空间 */
  min-width: 280px;
}

.grid-item span {
  flex-shrink: 0;
  width: auto;
  min-width: 80px;
  text-align: right;
  font-size: 15px;
}

.grid-item .el-input__inner {
  height: 30px;
  /* 修改为你想要的高度 */
  padding: 8px 12px;
  /* 调整内边距以保证美观 */
}

.button-bar {
  padding: 16px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: flex-start;
  /* 左对齐 */
  gap: 12px;
  flex-wrap: wrap;
}

.table-bar .el-table {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.table-bar .el-table .cell {
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  /* 设置单元格宽度为180px */
   /* width: 180px;   */
}
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}


/* 响应式布局 */
@media (max-width: 768px) {
  .app-container {
    padding: 10px;
    gap: 15px;
  }
  .search-bar {
    padding: 15px;
  }
  .search-bar {
    grid-template-columns: 1fr;
    /* 小屏幕下改为单列 */
  }
  .grid-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .grid-item span {
    text-align: left;
    width: 100%;
  }
  .button-bar {
    justify-content: center;
    /* 小屏幕下按钮居中 */
  }
  .table-bar .el-table {
    font-size: 12px;
  }
  .table-bar .el-table__header th {
    padding: 8px 0;
  }
  .table-bar .el-table__body td {
    padding: 6px 0;
  }
}
@media (max-width: 480px) {
  .app-container {
    padding: 8px;
    gap: 10px;
  }
  .search-bar {
    padding: 10px;
  }
  .grid-item span {
    font-size: 14px;
    min-width: 60px;
  }
  .table-bar .el-table-column--selection .cell {
    padding-left: 5px !important;
    padding-right: 5px !important;
  }
  .el-button {
    padding: 8px 12px;
    font-size: 12px;
  }
}

@media screen and (max-width: 750px) {
  .el-message-box {
    width: 80% !important;
  }
}
